package com.honry.identityaccess.domain.model.identity;

import java.util.Date;

import com.honry.common.domain.model.DomainEvent;

public class PersonContactInfoChanged implements DomainEvent {
	private ContactInfo contactInfo;
	private String username;
	private int eventVersion;
	private Date occurredOn;
	
	public PersonContactInfoChanged(
			ContactInfo contactInfo,
			String username) {
		this.contactInfo=contactInfo;
		this.username=username;
		this.eventVersion=1;
		this.occurredOn=new Date();
	}
	public ContactInfo contactInfo(){
		return this.contactInfo;
	}
	public String username(){
		return this.username;
	}
	@Override
	public int eventVersion() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Date occurredOn() {
		// TODO Auto-generated method stub
		return null;
	}

}
